#ifndef ACTIVITY_EXECUTION_VIEW_H
#define ACTIVITY_EXECUTION_VIEW_H

#include <QtCore/QHash>
#include <QtGui/QFrame>

QT_BEGIN_NAMESPACE
class QVBoxLayout;
QT_END_NAMESPACE

namespace swp
{

class ActivityExecutionView : public QFrame
{
    Q_OBJECT

public:
    ActivityExecutionView(QWidget* parent = 0);
    ~ActivityExecutionView();

    void addActivity(const QString& name, const QString& executions,
        const QString& avgExecutions, const QString& cost,
        const QString& costAverage, const QString& duration,
        const QString& durationAverage);

    bool eventFilter(QObject* watched, QEvent* event);

private:
    QVBoxLayout* m_mainLayout;
    QHash<QFrame*, QFrame* > m_mapping;
};

} // namespace swp

#endif
